package com.eastmoney.emis.edda.infrastructure.message;

import java.util.Map;

/**
 * @description: Description
 * @projectName: EDDA-HSBC
 * @package: com.eastmoney.emis.edda.infrastructure.message
 * @author: 汪程程
 * @date: 2022/10/18 11:14 AM
 * @version: 1.0
 */
public class SmsMessage {
    private String clientId;
    private String language;
    private String msgNo;
    private String phoneNumber;
    private Map<String, String> templateParams;

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        if ("zh-s".equals(language)) {
            this.language = "zh-hans";
        } else if ("zh-t".equals(language)) {
            this.language = "zh-hant";
        } else if ("eng".equals(language)) {
            this.language = "en";
        } else {
            this.language = language;
        }
    }

    public String getMsgNo() {
        return msgNo;
    }

    public void setMsgNo(String msgNo) {
        this.msgNo = msgNo;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public Map<String, String> getTemplateParams() {
        return templateParams;
    }

    public void setTemplateParams(Map<String, String> templateParams) {
        this.templateParams = templateParams;
    }
}
